﻿using Business_Layer;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Control_Layer
{
    // See UseCase:
    // UCD01-MODIFICATIONS (00)
    public class CCDeleteMindmap
    {
        private Service service;
        private Project project;

        public CCDeleteMindmap()
        {
            service = Service.GetInstance;
            project = service.GetProject;
        }

        /// <summary>
        /// Deletes a mindmap by ID.
        /// </summary>
        /// <param name="id">ID for mindmap.</param>
        /// <returns></returns>
        public bool DeleteMindmap(int id)
        {
            return project.DeleteMindmap(id);
        }
    }
}
